package com.link.base.base.accnt.dao.mybatis.mapper;

import com.link.base.base.accnt.model.Account;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/7 17:21
 * @version 1.0
 */

public interface AccountRegisterMapper {

    /**
     * <p>注册时新建客户</p>
     *
     * @author yrf
     * @param entity
     * @return
     */
    public int registerAccount(Account entity);

    /**
     * <p>注册客户是添加联系人</p>
     *
     * @author yrf
     * @param entity
     * @return
     */
    public int copyToContact(Account entity);

    /**
     * <p>根据联系电话查询客户</p>
     *
     * @author yrf
     * @param entity
     * @return
     */
    public List<Account> queryByMobilePhone(Account entity);
}
